package com.mmall.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.mmall.model.SysMenu;

public interface SysMenuMapper {
    
	List<SysMenu> getAllMenu();
	
    int deleteByPrimaryKey(String id);
    
    int insert(SysMenu record);
    
    int insertSelective(SysMenu record);
   
    SysMenu selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(SysMenu record);

    int updateByPrimaryKey(SysMenu record);

    int countByParentId(@Param("deptId") String deptId);
    
    int countByNameAndParentId(@Param("parentId") String parentId, @Param("name") String name, @Param("id") String id);
}